package com.chen.springcloud.demoeurekafeign.service;

import com.chen.springcloud.democommon.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "demo-eureka-client")
public interface EurekaClientService {

    @RequestMapping("/user/getUser")
    public Result getUser(@RequestParam("userId") Long userId);
}
